# Contributor: Damian Kurek <starfire24680@gmail.com>
# Maintainer: Damian Kurek <starfire24680@gmail.com>
pkgname=alembic
pkgver=1.7.13
pkgrel=0
pkgdesc="A open framework for storing and sharing scene data"
url="https://www.alembic.io/"
arch="x86 x86_64" #tests in architectures other than x86 and x86_64 fail, temporally only x86 and x86_64 are enabled until the issue is resolved
license="BSD-3-Clause"
depends="openexr hdf5 zlib boost-libs"
makedepends="openexr-dev hdf5-dev zlib-dev cmake boost-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/alembic/alembic/archive/$pkgver.tar.gz"

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DUSE_HDF5=ON

	make -C build
}

check() {
	make -C build test
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="1dcaf1e42f098e6052ec93aa0af99d3ab99d40d570aaa71cb980092be68e440982b05d0230a4543efa01dbd4e82fe617c70e0b3b2548bf9836a553f41f8232b1  alembic-1.7.13.tar.gz"

